home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
Pascal
/
Snippets
/
ColorIcosahedron 1.0
/
README
< prev
Wrap
Text File
|
1995-10-26
|
2KB
|
47 lines
An itty bitty bytes™ revival of the old 1986 John B. Halleck 3D
animation of an Icosahedron.
I didn't get my C port of it to run completely, yet, so it's not
here.
My rendition includes getting its own window from a resource,
rather than using the built-in drawing window of the Pascal
environment - which was originally TML Pascal.
One notable point about this program is the animation speed.
Rather than calculate each set of rotated points prior to each
rotation, the program calculates and and draws each of the 20
frames and copies the points into memory, then merely graps and
uses them for the display. The rotation speed really increases
when the ico. has little room to bounce around. Try it in a
200x200 window.
Of course, it only rotates on one axis. You can change the axis
by shifting the value assignments in the InitAxis routine. It
would be cool if you got it to rotate on all 3 axis'.
Anyway, there's an AD module that duplicates this thing, but in
color.
Enjoy!
kenlong@netcom.com
---
This version is in color, using my glue routines from Offscreen Toys,
and adding a palette and some much needed delays.
The program is, of course, quite dated even when in color, since
QuickDraw 3D would do the job much better, but at least it demonstrates
some useful things, like auto-using a palette through a "pltt" resource,
using glue code for compatibility, string centering etc.
At this time, it is for Think Pascal only. I didn't have the time and
energy to port it to MWP.
/Ingemar
PS: Second version, with some fixes in the port-setting that should make
it run under some systems where the first version failed.